package com.example.demo.utils.excelUtil;

import com.example.demo.utils.excelUtil.bean.Student;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author wangxinyuchuan
 * @version StudentExcelExportManager.java v1.0 2025/7/25 11:46 wangxinyuchuan Exp $
 */
@Component("studentExportExcelManager")
public class StudentExcelExportManager extends AbstractExcelExportManager<List<Student>, StudentExportExcelRequest>{

    @Override
    protected List<Student> getSourceData(StudentExportExcelRequest studentExportExcelRequest) {
        List<Student> excelDataList = new ArrayList<>();

        excelDataList.add(
                new Student("1", "张三qweqwesadqwdaswqedasd", 18, "0", "1", "2", "1", "上海", "1232297384783", "qq.com", "哈桑", new Date(),
                            new Date()));
        excelDataList.add(
                new Student("2", "张5", 22, "1", "1", "2", "1", "上海", "1232297384783", "qq.com", "哈桑2", new Date(),
                            new Date()));
        return excelDataList;
    }
}
